package com.copa.module.goods.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author copa
 * @createDate 2021-01-07 17:01
 * @function 分类查看dto
 */
@Data
public class CategoryDto {

    private Long id;

    @ApiModelProperty(value = "类目名字")
    private String name;

    @ApiModelProperty(value = "父类目id 0为根目录")
    private Long pid;

    @ApiModelProperty(value = "类目级别 1为一级目录 2为二级目录...")
    private Integer level;

    @ApiModelProperty(value = "类目图片")
    private String picUrl;

    @ApiModelProperty(value = "排序")
    private Integer sortOrder;
}
